<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/FileServlet" method="post" enctype="multipart/form-data">
			<table border="1" width="80%">
				<tr>
					<td>用户名</td>
					<td><input type="text" name="username" id="text" value="测试"></td>
				</tr>
				<tr>
					<td colspan="2"><input type="file" name="file"></td>
				</tr>
				<tr>
					<td colspan="2"><input type="submit" value="提交"></td>
				</tr>
				filename:${filename}<br/>
				<img src="${filename}" width="100px" height="100px"/>
			</table>
		
		</form>
</body>
</html>